package main

import "fmt"

func main() {
	n := 2
	switch n {
	case 1:
		fmt.Println("One")
	case 2:
		fmt.Println("Two")
		fallthrough
		// fallthrough will cause the next case to be executed even if the condition is false
	default:
		fmt.Println("Default")
	}

	age := 50
	switch {
	case age < 18:
		fmt.Println("You are underage")
	case age > 18 && age < 60:
		fmt.Println("You are an adult")
	case age >= 60:
		fmt.Println("You are a senior citizen")
	default:
		fmt.Println("Invalid age")
	}
}
